package com.example.blog.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.blog.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.blog.entity.vo.comment.CommentListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 评论表 Mapper 接口
 * </p>
 *
 * @author wlh
 * @since 2024-01-10
 */
public interface CommentMapper extends BaseMapper<Comment> {


    List<CommentListVO> backPageList(@Param("current") Integer current, @Param("size") Integer size, @Param("content") String content);

    long backPageTotal(@Param("content") String content);

    List<CommentListVO> newComment(@Param("userId") Long userId);
}
